import request from "@/utils/request.js";
export function getCategory() {
	return request.post("spice/category", {limit:100});
}
export function getList(data) {
	return request.post("spice/index", data);
}
export function getTiaopei(id) {
	return request.post("spice/getTiaopei", {id});
}
export function getRand(data) {
	return request.post("spice/getRand", data);
}


export function createTiaopei(data) {
	return request.post("/spice/tiaopei", data);
}
export function confirm(data) {
	return request.post("/spice/confirm", data);
}
export function copyStaff(data) {
	return request.post("/spice/copyStaff", data);
}
export function my(data) {
	return request.post("hash/manage", data);
}
export function search(data) {
	return request.post("/spice/search", data);
}
export function doChangeHash(id){
	return request.post("/staff/change", {id});
}
export function getTiaopeiByHash(code) {
	return request.post("/spice/getTiaopeiHash", {code});
}
export function checkCount() {
	return request.post("/spice/checkCount", {});
}
export function modifyName(data) {
	return request.post("/spice/modifyName", data);
}